<template>
  <div class="wrapper">
    <el-row>
      <el-col style="visibility: hidden">123</el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :span="6" v-for="(i, k) in list" :key="k">
        <img :src="i.img" class="image" />
        <div style="padding: 14px">
          <span>{{ i.tit }}</span>
          <div class="bottom clearfix">
            <time class="time">{{ i.currentDate }}</time>

            <el-button type="text" class="button">
              <router-link tag="div" :to="{ path: '/preview', query: {} }">
                操作按钮
              </router-link></el-button>
          </div>
        </div>
      </el-col>
    </el-row>
    <el-row>
      <el-col style="visibility: hidden">123</el-col>
    </el-row>
    <el-row>
      <el-col style="text-align: right">
        <el-pagination
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page="currentPage4"
          :page-sizes="[100, 200, 300, 400]"
          :page-size="100"
          layout="total, sizes, prev, pager, next, jumper"
          :total="400"
        >
        </el-pagination
      ></el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  components: {},
  props: {
    list: {
      type: Array,
      default() {
        return [];
      },
    },
  },
  data() {
    return {
      currentPage4: 4,
    };
  },
  watch: {},
  computed: {},
  methods: {
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
  },
  created() {},
  mounted() {},
};
</script>
<style lang="less" scoped>
.wrapper {
  .time {
    font-size: 13px;
    color: #999;
  }

  .bottom {
    margin-top: 13px;
    line-height: 12px;
  }

  .button {
    padding: 0;
    float: right;
  }

  .image {
    width: 100%;
    display: block;
  }

  .clearfix:before,
  .clearfix:after {
    display: table;
    content: "";
  }

  .clearfix:after {
    clear: both;
  }
}
</style>